import '../DepartmentAnalysis/DepartmentAnalysis.css';

import { useNavigate } from 'react-router-dom'; // 导入 useHistory

export default function DepartmentAnalysis() {
    const navigate = useNavigate(); // 使用 useHistory 钩子

    const handleNav = () => {
        navigate('/da');
    }
    return <div className='DepBody'>
        <div className='title'><h1>欢迎来到可视化东软医院大数据面板</h1></div>
        <button className='btn' onClick={handleNav}>点击前往大数据面板</button>
    </div>
}